import request from '@/utils/request'
export default{
    // 模糊查询
    search(data){
        return request({
            url: '/project_library/portfolio/getFrees/'+ data,
            method: 'post'
        })
    },
    // 保存信息
    save(form){
        return request({
            url: '/project_source/EssentialInformation/save',
            method: 'post',
            data:form,
        })
    },
    // 获取信息
    openInfo(id){
        return request({
            url: '/project_source/EssentialInformation/getInfo/'+id,
            method: 'post'
        })
    },
    // 修改信息
    updateInfo(form){
        return request({
            url: '/project_source/EssentialInformation/updata',
            method: 'post',
            data: form
        })
    },
    // 获取预警信息
    getYJ(id){
        return request({
            url: 'project_source/real_time/warningInformation/findbyid/' + id,
            method: 'post',
        })
    },
    // 获取打卡信息
    getDK(id){
        return request({
            url: '/card_manage/cardInfo/getProCardInfo/'+id,
            method: 'post',
        })
    },
    // 获取施工单位
    getSGunit(){
        return request({
            url: '/other/unit/getSg/1',
            method: 'post',
        })
    },
    // 获取监理单位
    getJLunit(){
        return request({
            url: '/other/unit/getSg/2',
            method: 'post',
        })
    },
    // 获取单位负责人
    getFZR(id){
        return request({
            url: '/project_source/EssentialInformation/findWordPerson/'+id,
            method: 'post',
        })
    },
    // 获取监理单位负责人
    getJLFZR(id){
        return request({
            url: '/project_source/EssentialInformation/findWordPerson/'+id,
            method: 'post',
        })
    },
}